<template>
  <el-dropdown-item
    :command="command"
    :disabled="disabled"
    :divided="divided"
    v-bind="$attrs"
  >
    <AxiomIcon v-if="icon" :name="icon" class="mr-2" />
    <slot />
  </el-dropdown-item>
</template>

<script setup>
import AxiomIcon from './AxiomIcon.vue';

defineOptions({
  name: 'AxiomDropdownItem'
});

defineProps({
  command: [String, Number, Object],
  disabled: Boolean,
  divided: Boolean,
  icon: String,
});
</script> 